package org.kinglone.back.music.model;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;
/**
 * 音乐实体类
 * @author yejinlong
 * 2017年8月2日
 * @version 1.0
 */
@Entity
@Table(name="music")
public class Music implements Serializable {

	private static final long serialVersionUID = 1L;
		
	@Id @GenericGenerator(name = "generator", strategy = "uuid.hex")
	@GeneratedValue(generator = "generator")
	@Column(name="sysid", unique = true, nullable = false, length = 32)
	private String sysid;
	
	//音乐名称
    @Column(name="musicName",nullable = false,length=20)
    private String musicName;

    //上传时间
    @Column(name="createtime",nullable = false,length=20)
    private String createTime;
	
	//音乐链接
    @Column(name="musicUrl",nullable = false,length=128)
    private String musicUrl;
	
	//排序
    @Column(name="sequence",nullable = false,length=20)
    private String sequence;

    //是否可用
    @Column(name="enabled",nullable = false,length=20)
    private String enabled;

    public Music() {
    }

    public Music(String sysid,String musicName, String createTime, String musicUrl, String sequence, String enabled) {
        this.sysid = sysid;
        this.musicName = musicName;
        this.createTime = createTime;
        this.musicUrl = musicUrl;
        this.sequence = sequence;
        this.enabled = enabled;
    }

    public String getSysid() {
        return sysid;
    }

    public void setSysid(String sysid) {
        this.sysid = sysid;
    }

    public String getMusicName() {
        return musicName;
    }

    public void setMusicName(String musicName) {
        this.musicName = musicName;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getMusicUrl() {
        return musicUrl;
    }

    public void setMusicUrl(String musicUrl) {
        this.musicUrl = musicUrl;
    }

    public String getSequence() {
        return sequence;
    }

    public void setSequence(String sequence) {
        this.sequence = sequence;
    }

    public String getEnabled() {
        return enabled;
    }

    public void setEnabled(String enabled) {
        this.enabled = enabled;
    }
}
